#ifndef TREEWIDGET_H
#define TREEWIDGET_H

#include <QObject>
#include <QTreeWidget>

class TreeWidget : public QTreeWidget
{
    Q_OBJECT
public:
    explicit TreeWidget(QWidget *parent = nullptr);

protected:
    bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override;
    void dropEvent(QDropEvent *event) override;

signals:
    void itemIsMoved(QTreeWidgetItem *item);

};

#endif // TREEWIDGET_H
